package com.edu.employee.pojo.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * @ProjectName: summer-project
 * @Titile: EmpLoginDTO
 * @Author: Lucky
 * @Description: 员工登录DTO
 */
@Data
public class EmpLoginDTO {
    //登录的账户
    @NotBlank(message = "登录账户不能为空")
    private String account;
    //登录密码
    @NotBlank(message = "登录密码不能为空")
    @Length(min = 6,max = 12,message = "密码的长度必须为{min}-{max}位")

    private String password;
}
